{% extends "polls/base.html" %}

{% load i18n %}

{% block title %}{% blocktrans %}Settings{% endblocktrans %}{% endblock %}

{% block content %}

{% with "settings_f" as CURRENT_ITEM %}
{% include "polls/menu.html" %}
{% endwith %}

<div>
<form action="{% url polls-settings LANGUAGE_CODE %}" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ next }}" />
<div>
<label for="select_language">{% blocktrans %}Language: {% endblocktrans %}</label>
<select name="language" id="select_language">
{% if not supports_language %}
<option value="{{ LANGUAGE_CODE }}" selected="selected">------------</option>
{% endif %}
{% for lang, value in languages %}
{% if lang != LANGUAGE_CODE %}
<option value="{{ lang }}">{{ value.1 }} ({{ value.0 }})</option>
{% else %}
<option value="{{ lang }}" selected="selected">{{ value.1 }}</option>
{% endif %}
{% endfor %}
</select>
</div>
<input type="submit" value="{% blocktrans %}Save{% endblocktrans %}" />
</form>
</div>

{% endblock %}